home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-03-30 | 8.5 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: resetdtdbs.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Mar 30 20:25:36 1995, modified Thu Mar 30 20:25:36 1995, creator Think C, type ASCII, 8093 bytes "resetdtdbs.c" , at 0x201d 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 72 65 73 65 74 64 | 74 64 62 73 2e 63 00 00 |..resetd|tdbs.c..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 1f 9d 00 | 00 01 7e ab a1 0a 90 ab |........|..~.....|
|00000060| a1 0a 90 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6f 24 00 00 |........|....o$..|
|00000080| 2f 2a 0d 20 2a 20 52 65 | 73 65 74 20 44 54 44 42 |/*. * Re|set DTDB|
|00000090| 73 0d 20 2a 20 20 20 52 | 65 73 65 74 73 20 64 65 |s. * R|esets de|
|000000a0| 73 6b 74 6f 70 20 64 61 | 74 61 62 61 73 65 73 20 |sktop da|tabases |
|000000b0| 6f 66 20 6d 6f 75 6e 74 | 65 64 20 76 6f 6c 75 6d |of mount|ed volum|
|000000c0| 65 73 2e 0d 20 2a 20 0d | 20 2a 20 53 6f 75 72 63 |es.. * .| * Sourc|
|000000d0| 65 20 66 69 6c 65 3a 20 | 72 65 73 65 74 64 74 64 |e file: |resetdtd|
|000000e0| 62 73 2e 63 0d 20 2a 20 | 57 72 69 74 74 65 6e 20 |bs.c. * |Written |
|000000f0| 62 79 20 42 72 69 61 6e | 20 47 61 65 6b 65 2e 20 |by Brian| Gaeke. |
|00000100| 45 2d 6d 61 69 6c 3a 20 | 3c 62 72 67 40 64 67 61 |E-mail: |<brg@dga|
|00000110| 74 65 2e 6f 72 67 3e 0d | 20 2a 20 43 72 65 61 74 |te.org>.| * Creat|
|00000120| 65 64 20 32 38 20 44 65 | 63 65 6d 62 65 72 20 31 |ed 28 De|cember 1|
|00000130| 39 39 32 2e 0d 20 2a 20 | 0d 20 2a 20 54 68 65 20 |992.. * |. * The |
|00000140| 73 6f 75 72 63 65 20 63 | 6f 64 65 20 74 6f 20 52 |source c|ode to R|
|00000150| 65 73 65 74 20 44 54 44 | 42 73 20 69 73 20 63 6f |eset DTD|Bs is co|
|00000160| 70 79 72 69 67 68 74 65 | 64 20 a9 20 31 39 39 32 |pyrighte|d . 1992|
|00000170| 2c 20 31 39 39 33 2c 20 | 31 39 39 35 20 62 79 20 |, 1993, |1995 by |
|00000180| 54 68 65 0d 20 2a 20 44 | 69 6d 65 6e 73 69 6f 6e |The. * D|imension|
|00000190| 61 6c 20 47 61 74 65 20 | 43 6f 6d 70 61 6e 79 2e |al Gate |Company.|
|000001a0| 20 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 | All rig|hts rese|
|000001b0| 72 76 65 64 20 77 6f 72 | 6c 64 77 69 64 65 20 65 |rved wor|ldwide e|
|000001c0| 78 63 65 70 74 20 77 68 | 65 72 65 0d 20 2a 20 73 |xcept wh|ere. * s|
|000001d0| 70 65 63 69 66 69 63 61 | 6c 6c 79 20 70 65 72 6d |pecifica|lly perm|
|000001e0| 69 74 74 65 64 2e 0d 20 | 2a 20 0d 20 2a 20 20 20 |itted.. |* . * |
|000001f0| 53 6f 75 72 63 65 20 4e | 6f 74 65 73 20 28 54 68 |Source N|otes (Th|
|00000200| 65 73 65 20 77 65 72 65 | 20 66 6f 72 6d 65 72 6c |ese were| formerl|
|00000210| 79 20 64 69 73 74 72 69 | 62 75 74 65 64 20 69 6e |y distri|buted in|
|00000220| 20 61 20 73 65 70 61 72 | 61 74 65 20 66 69 6c 65 | a separ|ate file|
|00000230| 2e 29 0d 20 2a 0d 20 2a | 20 52 65 73 65 74 20 44 |.). *. *| Reset D|
|00000240| 54 44 42 73 20 69 73 20 | 76 65 72 79 2c 20 76 65 |TDBs is |very, ve|
|00000250| 72 79 20 73 69 6d 70 6c | 65 2d 2d 73 68 6f 77 73 |ry simpl|e--shows|
|00000260| 20 61 20 66 65 77 20 64 | 69 61 6c 6f 67 73 2c 20 | a few d|ialogs, |
|00000270| 63 61 6c 6c 73 20 61 20 | 66 65 77 20 44 65 73 6b |calls a |few Desk|
|00000280| 74 6f 70 20 4d 61 6e 61 | 67 65 72 0d 20 2a 20 66 |top Mana|ger. * f|
|00000290| 75 6e 63 74 69 6f 6e 73 | 2c 20 61 6e 64 20 74 68 |unctions|, and th|
|000002a0| 65 6e 20 72 65 73 74 61 | 72 74 73 2e 20 49 66 20 |en resta|rts. If |
|000002b0| 79 6f 75 20 61 72 65 20 | 6e 6f 74 20 66 61 6d 69 |you are |not fami|
|000002c0| 6c 69 61 72 20 77 69 74 | 68 20 74 68 65 20 44 65 |liar wit|h the De|
|000002d0| 73 6b 74 6f 70 20 4d 61 | 6e 61 67 65 72 2c 20 69 |sktop Ma|nager, i|
|000002e0| 74 0d 20 2a 20 77 6f 75 | 6c 64 20 64 6f 20 79 6f |t. * wou|ld do yo|
|000002f0| 75 20 67 6f 6f 64 20 74 | 6f 20 72 65 61 64 20 70 |u good t|o read p|
|00000300| 61 67 65 73 20 39 2d 34 | 34 20 74 6f 20 39 2d 36 |ages 9-4|4 to 9-6|
|00000310| 30 20 69 6e 20 49 6e 73 | 69 64 65 20 4d 61 63 69 |0 in Ins|ide Maci|
|00000320| 6e 74 6f 73 68 20 56 49 | 20 62 65 66 6f 72 65 20 |ntosh VI| before |
|00000330| 79 6f 75 0d 20 2a 20 72 | 65 61 64 20 74 68 65 20 |you. * r|ead the |
|00000340| 73 6f 75 72 63 65 2e 20 | 54 68 65 20 63 6f 64 65 |source. |The code|
|00000350| 20 73 69 6d 70 6c 79 20 | 63 79 63 6c 65 73 20 74 | simply |cycles t|
|00000360| 68 72 6f 75 67 68 20 74 | 68 65 20 56 43 42 20 61 |hrough t|he VCB a|
|00000370| 6e 64 20 63 61 6c 6c 73 | 20 0d 20 2a 20 50 42 44 |nd calls| . * PBD|
|00000380| 54 43 6c 6f 73 65 44 6f | 77 6e 28 29 2c 20 50 42 |TCloseDo|wn(), PB|
|00000390| 44 54 46 6c 75 73 68 28 | 29 2c 20 61 6e 64 20 50 |DTFlush(|), and P|
|000003a0| 42 44 54 44 65 6c 65 74 | 65 28 29 20 6f 6e 20 65 |BDTDelet|e() on e|
|000003b0| 61 63 68 20 76 52 65 66 | 4e 75 6d 20 69 6e 20 74 |ach vRef|Num in t|
|000003c0| 68 65 20 56 43 42 20 71 | 75 65 75 65 2e 0d 20 2a |he VCB q|ueue.. *|
|000003d0| 20 54 68 65 20 64 6f 6e | 65 28 29 20 6d 61 63 72 | The don|e() macr|
|000003e0| 6f 20 63 6f 6d 70 61 72 | 65 73 20 69 74 73 20 61 |o compar|es its a|
|000003f0| 72 67 75 6d 65 6e 74 20 | 74 6f 20 74 68 65 20 71 |rgument |to the q|
|00000400| 54 61 69 6c 20 6f 66 20 | 74 68 65 20 56 43 42 20 |Tail of |the VCB |
|00000410| 71 75 65 75 65 2c 20 61 | 6e 64 20 74 68 65 6e 0d |queue, a|nd then.|
|00000420| 20 2a 20 63 68 65 63 6b | 73 20 74 6f 20 73 65 65 | * check|s to see|
|00000430| 20 69 66 20 74 68 65 72 | 65 20 69 73 20 6f 6e 6c | if ther|e is onl|
|00000440| 79 20 6f 6e 65 20 6d 6f | 75 6e 74 65 64 20 76 6f |y one mo|unted vo|
|00000450| 6c 75 6d 65 20 28 61 73 | 20 74 68 65 20 63 61 73 |lume (as| the cas|
|00000460| 65 20 6d 61 79 20 62 65 | 2e 29 20 49 66 20 74 68 |e may be|.) If th|
|00000470| 65 73 65 0d 20 2a 20 61 | 72 65 20 62 6f 74 68 20 |ese. * a|re both |
|00000480| 74 72 75 65 2c 20 74 68 | 65 6e 20 74 68 65 20 77 |true, th|en the w|
|00000490| 68 6f 6c 65 20 56 43 42 | 20 68 61 73 20 62 65 65 |hole VCB| has bee|
|000004a0| 6e 20 73 63 61 6e 6e 65 | 64 2c 20 61 6e 64 20 74 |n scanne|d, and t|
|000004b0| 68 65 20 6c 6f 6f 70 20 | 73 74 6f 70 73 2e 0d 20 |he loop |stops.. |
|000004c0| 2a 20 0d 20 2a 20 54 68 | 65 20 63 6f 6d 70 69 6c |* . * Th|e compil|
|000004d0| 65 64 20 70 72 6f 67 72 | 61 6d 20 69 73 20 6e 6f |ed progr|am is no|
|000004e0| 77 20 64 69 73 74 72 69 | 62 75 74 65 64 20 77 69 |w distri|buted wi|
|000004f0| 74 68 20 74 68 65 20 73 | 6f 75 72 63 65 2e 20 49 |th the s|ource. I|
|00000500| 20 69 6d 61 67 69 6e 65 | 20 28 61 6c 74 68 6f 75 | imagine| (althou|
|00000510| 67 68 20 49 20 61 6d 0d | 20 2a 20 6e 6f 74 20 73 |gh I am.| * not s|
|00000520| 75 72 65 29 20 74 68 61 | 74 20 69 74 20 63 6f 75 |ure) tha|t it cou|
|00000530| 6c 64 20 62 65 20 70 6f | 72 74 65 64 20 74 6f 20 |ld be po|rted to |
|00000540| 4d 50 57 20 43 20 76 65 | 72 79 20 65 61 73 69 6c |MPW C ve|ry easil|
|00000550| 79 2e 20 59 6f 75 20 61 | 72 65 20 73 70 65 63 69 |y. You a|re speci|
|00000560| 66 69 63 61 6c 6c 79 0d | 20 2a 20 70 65 72 6d 69 |fically.| * permi|
|00000570| 74 74 65 64 20 74 6f 20 | 75 73 65 20 65 6c 65 6d |tted to |use elem|
|00000580| 65 6e 74 73 20 6f 66 20 | 74 68 65 20 52 65 73 65 |ents of |the Rese|
|00000590| 74 20 44 54 44 42 73 20 | 63 6f 64 65 20 69 6e 20 |t DTDBs |code in |
|000005a0| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 73 2c 20 70 |your pro|grams, p|
|000005b0| 72 6f 76 69 64 65 64 20 | 74 68 61 74 0d 20 2a 20 |rovided |that. * |
|000005c0| 79 6f 75 20 69 6e 63 6c | 75 64 65 20 74 68 65 20 |you incl|ude the |
|000005d0| 70 68 72 61 73 65 20 22 | 50 6f 72 74 69 6f 6e 73 |phrase "|Portions|
|000005e0| 20 63 6f 70 79 72 69 67 | 68 74 20 a9 20 31 39 39 | copyrig|ht . 199|
|000005f0| 32 2c 20 31 39 39 33 2c | 20 31 39 39 35 20 62 79 |2, 1993,| 1995 by|
|00000600| 20 54 68 65 20 44 69 6d | 65 6e 73 69 6f 6e 61 6c | The Dim|ensional|
|00000610| 0d 20 2a 20 47 61 74 65 | 20 43 6f 6d 70 61 6e 79 |. * Gate| Company|
|00000620| 22 20 69 6e 20 79 6f 75 | 72 20 64 6f 63 75 6d 65 |" in you|r docume|
|00000630| 6e 74 61 74 69 6f 6e 20 | 61 6e 64 20 73 6f 75 72 |ntation |and sour|
|00000640| 63 65 20 63 6f 64 65 2e | 0d 20 2a 20 0d 20 2a 20 |ce code.|. * . * |
|00000650| 56 65 72 73 69 6f 6e 20 | 32 2e 31 20 28 4d 61 72 |Version |2.1 (Mar|
|00000660| 2e 20 33 30 2c 20 31 39 | 39 35 29 3a 20 41 64 64 |. 30, 19|95): Add|
|00000670| 65 64 20 61 20 71 75 69 | 63 6b 69 65 20 70 72 65 |ed a qui|ckie pre|
|00000680| 66 65 72 65 6e 63 65 73 | 20 6f 70 74 69 6f 6e 20 |ferences| option |
|00000690| 74 68 61 74 20 61 6c 6c | 6f 77 73 0d 20 2a 20 74 |that all|ows. * t|
|000006a0| 68 65 20 75 73 65 72 20 | 74 6f 20 73 65 74 20 61 |he user |to set a|
|000006b0| 20 22 73 69 6c 65 6e 74 | 20 72 75 6e 6e 69 6e 67 | "silent| running|
|000006c0| 22 20 66 65 61 74 75 72 | 65 2e 20 57 68 65 6e 20 |" featur|e. When |
|000006d0| 74 68 65 20 6f 70 65 6e | 69 6e 67 20 64 69 61 6c |the open|ing dial|
|000006e0| 6f 67 20 63 6f 6d 65 73 | 20 75 70 20 74 68 65 0d |og comes| up the.|
|000006f0| 20 2a 20 75 73 65 72 20 | 63 61 6e 20 68 69 74 20 | * user |can hit |
|00000700| 27 51 75 69 74 2c 20 62 | 75 74 20 64 6f 6e 27 74 |'Quit, b|ut don't|
|00000710| 20 70 72 6f 6d 70 74 20 | 6e 65 78 74 20 74 69 6d | prompt |next tim|
|00000720| 65 27 20 2d 20 74 68 69 | 73 20 77 69 6c 6c 20 63 |e' - thi|s will c|
|00000730| 68 61 6e 67 65 20 61 20 | 77 6f 72 64 20 69 6e 20 |hange a |word in |
|00000740| 74 68 65 0d 20 2a 20 72 | 65 73 6f 75 72 63 65 20 |the. * r|esource |
|00000750| 66 6f 72 6b 20 6f 66 20 | 74 68 65 20 61 70 70 6c |fork of |the appl|
|00000760| 69 63 61 74 69 6f 6e 20 | 28 61 20 62 6f 6f 2d 62 |ication |(a boo-b|
|00000770| 6f 6f 20 73 74 79 6c 69 | 73 74 69 63 61 6c 6c 79 |oo styli|stically|
|00000780| 2c 20 49 20 6b 6e 6f 77 | 20 2d 2d 20 6c 65 74 20 |, I know| -- let |
|00000790| 69 74 20 63 6f 6d 65 0d | 20 2a 20 62 61 63 6b 20 |it come.| * back |
|000007a0| 74 6f 20 62 69 74 65 20 | 6d 65 21 20 74 68 65 6e |to bite |me! then|
|000007b0| 20 49 27 6c 6c 20 77 6f | 72 6b 20 6f 6e 20 61 64 | I'll wo|rk on ad|
|000007c0| 64 69 6e 67 20 66 69 6e | 64 66 6f 6c 64 65 72 20 |ding fin|dfolder |
|000007d0| 73 75 70 70 6f 72 74 20 | 2d 2d 20 74 68 69 73 20 |support |-- this |
|000007e0| 69 73 20 73 75 70 70 6f | 73 65 64 0d 20 2a 20 74 |is suppo|sed. * t|
|000007f0| 6f 20 62 65 20 73 69 6d | 70 6c 65 29 20 74 68 61 |o be sim|ple) tha|
|00000800| 74 20 77 69 6c 6c 20 6d | 61 6b 65 20 72 65 73 65 |t will m|ake rese|
|00000810| 74 20 64 74 64 62 73 20 | 6e 6f 74 20 70 72 6f 6d |t dtdbs |not prom|
|00000820| 70 74 20 6e 65 78 74 20 | 74 69 6d 65 2e 20 48 6f |pt next |time. Ho|
|00000830| 6c 64 20 73 68 69 66 74 | 20 77 68 65 6e 0d 20 2a |ld shift| when. *|
|00000840| 20 73 74 61 72 74 69 6e | 67 20 74 6f 20 73 65 74 | startin|g to set|
|00000850| 20 74 68 69 73 20 66 6c | 61 67 20 62 61 63 6b 20 | this fl|ag back |
|00000860| 74 6f 20 6e 6f 72 6d 61 | 6c 2e 20 54 68 69 73 20 |to norma|l. This |
|00000870| 69 73 20 61 20 63 6c 75 | 6e 6b 79 20 69 6e 74 65 |is a clu|nky inte|
|00000880| 72 66 61 63 65 2c 20 74 | 6f 20 62 65 20 73 75 72 |rface, t|o be sur|
|00000890| 65 2c 0d 20 2a 20 62 75 | 74 20 69 74 20 77 69 6c |e,. * bu|t it wil|
|000008a0| 6c 20 70 72 6f 62 61 62 | 6c 79 20 62 65 20 72 65 |l probab|ly be re|
|000008b0| 70 6c 61 63 65 64 20 6f | 6e 63 65 20 49 20 67 65 |placed o|nce I ge|
|000008c0| 74 20 61 72 6f 75 6e 64 | 20 74 6f 20 6d 61 6b 69 |t around| to maki|
|000008d0| 6e 67 20 76 33 2e 30 2e | 20 28 69 2e 65 2e 20 4e |ng v3.0.| (i.e. N|
|000008e0| 65 76 65 72 20 3a 29 0d | 20 2a 2f 0d 20 0d 23 64 |ever :).| */. .#d|
|000008f0| 65 66 69 6e 65 20 64 6f | 6e 65 28 76 63 62 29 20 |efine do|ne(vcb) |
|00000900| 28 28 76 63 62 29 20 3d | 3d 20 28 76 63 62 51 48 |((vcb) =|= (vcbQH|
|00000910| 64 72 2d 3e 71 54 61 69 | 6c 29 29 20 26 26 20 28 |dr->qTai|l)) && (|
|00000920| 28 76 63 62 51 48 64 72 | 2d 3e 71 48 65 61 64 29 |(vcbQHdr|->qHead)|
|00000930| 20 21 3d 20 28 76 63 62 | 51 48 64 72 2d 3e 71 54 | != (vcb|QHdr->qT|
|00000940| 61 69 6c 29 29 0d 23 69 | 6e 63 6c 75 64 65 20 3c |ail)).#i|nclude <|
|00000950| 50 72 6f 63 65 73 73 65 | 73 2e 68 3e 0d 23 69 6e |Processe|s.h>.#in|
|00000960| 63 6c 75 64 65 20 3c 41 | 70 70 6c 65 45 76 65 6e |clude <A|ppleEven|
|00000970| 74 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |ts.h>.#i|nclude <|
|00000980| 53 68 75 74 44 6f 77 6e | 2e 68 3e 0d 0d 65 6e 75 |ShutDown|.h>..enu|
|00000990| 6d 0d 7b 0d 09 53 74 61 | 72 74 75 70 41 6c 72 74 |m.{..Sta|rtupAlrt|
|000009a0| 20 3d 20 31 32 38 2c 0d | 09 43 6f 6e 66 69 72 6d | = 128,.|.Confirm|
|000009b0| 41 6c 72 74 20 3d 20 31 | 32 39 2c 0d 09 45 72 72 |Alrt = 1|29,..Err|
|000009c0| 6f 72 41 6c 72 74 20 20 | 20 3d 20 31 33 30 2c 0d |orAlrt | = 130,.|
|000009d0| 09 53 75 63 63 65 73 73 | 41 6c 72 74 20 3d 20 31 |.Success|Alrt = 1|
|000009e0| 33 31 2c 0d 09 54 6f 67 | 67 6c 65 41 6c 72 74 20 |31,..Tog|gleAlrt |
|000009f0| 20 3d 20 31 33 32 2c 0d | 09 50 72 65 66 52 73 72 | = 132,.|.PrefRsr|
|00000a00| 63 49 44 20 20 3d 20 31 | 32 38 0d 7d 3b 0d 0d 23 |cID = 1|28.};..#|
|00000a10| 64 65 66 69 6e 65 20 50 | 72 65 66 52 73 72 63 54 |define P|refRsrcT|
|00000a20| 79 70 65 20 27 50 72 65 | 66 27 20 0d 23 64 65 66 |ype 'Pre|f' .#def|
|00000a30| 69 6e 65 20 46 69 6e 64 | 65 72 53 69 67 6e 61 74 |ine Find|erSignat|
|00000a40| 75 72 65 20 27 4d 41 43 | 53 27 0d 23 64 65 66 69 |ure 'MAC|S'.#defi|
|00000a50| 6e 65 20 5f 54 52 55 45 | 5f 20 31 0d 23 64 65 66 |ne _TRUE|_ 1.#def|
|00000a60| 69 6e 65 20 5f 46 41 4c | 53 45 5f 20 30 0d 0d 74 |ine _FAL|SE_ 0..t|
|00000a70| 79 70 65 64 65 66 20 73 | 68 6f 72 74 20 62 6f 6f |ypedef s|hort boo|
|00000a80| 6c 3b 0d 0d 2f 2a 20 32 | 2e 31 20 2d 20 53 69 6c |l;../* 2|.1 - Sil|
|00000a90| 65 6e 74 20 72 75 6e 6e | 69 6e 67 20 73 74 61 74 |ent runn|ing stat|
|00000aa0| 65 73 3a 20 20 30 20 2d | 20 6e 6f 74 20 73 69 6c |es: 0 -| not sil|
|00000ab0| 65 6e 74 20 72 75 6e 6e | 69 6e 67 2c 20 72 75 6e |ent runn|ing, run|
|00000ac0| 20 6c 69 6b 65 20 75 73 | 75 61 6c 2e 20 0d 20 2a | like us|ual. . *|
|00000ad0| 20 20 20 20 20 20 20 20 | 20 28 50 72 65 66 73 52 | | (PrefsR|
|00000ae0| 65 63 2e 73 69 6c 65 6e | 74 29 20 20 20 20 20 31 |ec.silen|t) 1|
|00000af0| 20 2d 20 79 65 73 20 73 | 69 6c 65 6e 74 20 72 75 | - yes s|ilent ru|
|00000b00| 6e 6e 69 6e 67 2c 20 64 | 6f 6e 27 74 20 70 72 6f |nning, d|on't pro|
|00000b10| 6d 70 74 2e 0d 20 2a 2f | 0d 74 79 70 65 64 65 66 |mpt.. */|.typedef|
|00000b20| 20 73 74 72 75 63 74 20 | 50 72 65 66 73 52 65 63 | struct |PrefsRec|
|00000b30| 0d 7b 0d 09 62 6f 6f 6c | 20 73 69 6c 65 6e 74 3b |.{..bool| silent;|
|00000b40| 0d 7d 20 50 72 65 66 73 | 52 65 63 2c 20 2a 2a 50 |.} Prefs|Rec, **P|
|00000b50| 72 65 66 73 52 73 72 63 | 3b 0d 0d 50 72 65 66 73 |refsRsrc|;..Prefs|
|00000b60| 52 73 72 63 20 70 72 65 | 66 73 20 3d 20 4e 55 4c |Rsrc pre|fs = NUL|
|00000b70| 4c 3b 0d 0d 50 72 65 66 | 73 52 73 72 63 20 47 65 |L;..Pref|sRsrc Ge|
|00000b80| 74 50 72 65 66 73 28 76 | 6f 69 64 29 3b 0d 76 6f |tPrefs(v|oid);.vo|
|00000b90| 69 64 20 54 75 72 6e 53 | 69 6c 65 6e 74 4f 66 66 |id TurnS|ilentOff|
|00000ba0| 5f 69 66 53 68 69 66 74 | 44 6f 77 6e 28 76 6f 69 |_ifShift|Down(voi|
|00000bb0| 64 29 3b 0d 76 6f 69 64 | 20 54 75 72 6e 53 69 6c |d);.void| TurnSil|
|00000bc0| 65 6e 74 4f 6e 28 76 6f | 69 64 29 3b 0d 70 61 73 |entOn(vo|id);.pas|
|00000bd0| 63 61 6c 20 76 6f 69 64 | 20 6d 61 69 6e 28 76 6f |cal void| main(vo|
|00000be0| 69 64 29 3b 0d 73 68 6f | 72 74 20 4f 70 65 6e 44 |id);.sho|rt OpenD|
|00000bf0| 61 74 61 62 61 73 65 28 | 73 68 6f 72 74 20 76 52 |atabase(|short vR|
|00000c00| 65 66 4e 75 6d 29 3b 0d | 76 6f 69 64 20 44 65 6c |efNum);.|void Del|
|00000c10| 65 74 65 44 61 74 61 62 | 61 73 65 28 73 68 6f 72 |eteDatab|ase(shor|
|00000c20| 74 20 64 74 52 65 66 4e | 75 6d 29 3b 0d 76 6f 69 |t dtRefN|um);.voi|
|00000c30| 64 20 50 72 65 70 61 72 | 65 44 61 74 61 62 61 73 |d Prepar|eDatabas|
|00000c40| 65 28 73 68 6f 72 74 20 | 64 74 52 65 66 4e 75 6d |e(short |dtRefNum|
|00000c50| 29 3b 0d 76 6f 69 64 20 | 49 6e 69 74 4d 61 63 28 |);.void |InitMac(|
|00000c60| 76 6f 69 64 29 3b 0d 76 | 6f 69 64 20 44 6f 44 69 |void);.v|oid DoDi|
|00000c70| 61 6c 6f 67 73 28 76 6f | 69 64 29 3b 0d 76 6f 69 |alogs(vo|id);.voi|
|00000c80| 64 20 4b 69 6c 6c 46 69 | 6e 64 65 72 28 76 6f 69 |d KillFi|nder(voi|
|00000c90| 64 29 3b 0d 76 6f 69 64 | 20 50 61 6e 69 63 28 4f |d);.void| Panic(O|
|00000ca0| 53 45 72 72 20 65 72 72 | 2c 20 75 6e 73 69 67 6e |SErr err|, unsign|
|00000cb0| 65 64 20 63 68 61 72 20 | 2a 72 6f 75 74 69 6e 65 |ed char |*routine|
|00000cc0| 29 3b 0d 0d 50 72 65 66 | 73 52 73 72 63 20 47 65 |);..Pref|sRsrc Ge|
|00000cd0| 74 50 72 65 66 73 28 76 | 6f 69 64 29 0d 7b 0d 09 |tPrefs(v|oid).{..|
|00000ce0| 50 72 65 66 73 52 73 72 | 63 20 74 65 6d 70 3b 0d |PrefsRsr|c temp;.|
|00000cf0| 09 0d 09 74 65 6d 70 20 | 3d 20 47 65 74 52 65 73 |...temp |= GetRes|
|00000d00| 6f 75 72 63 65 28 50 72 | 65 66 52 73 72 63 54 79 |ource(Pr|efRsrcTy|
|00000d10| 70 65 2c 50 72 65 66 52 | 73 72 63 49 44 29 3b 0d |pe,PrefR|srcID);.|
|00000d20| 09 69 66 20 28 21 74 65 | 6d 70 29 0d 09 7b 0d 09 |.if (!te|mp)..{..|
|00000d30| 09 69 66 20 28 52 65 73 | 45 72 72 6f 72 28 29 20 |.if (Res|Error() |
|00000d40| 3d 3d 20 72 65 73 4e 6f | 74 46 6f 75 6e 64 29 0d |== resNo|tFound).|
|00000d50| 09 09 7b 0d 09 09 09 74 | 65 6d 70 20 3d 20 28 50 |..{....t|emp = (P|
|00000d60| 72 65 66 73 52 73 72 63 | 29 20 4e 65 77 48 61 6e |refsRsrc|) NewHan|
|00000d70| 64 6c 65 28 73 69 7a 65 | 6f 66 28 50 72 65 66 73 |dle(size|of(Prefs|
|00000d80| 52 65 63 29 29 3b 0d 09 | 09 09 69 66 20 28 21 74 |Rec));..|..if (!t|
|00000d90| 65 6d 70 29 0d 09 09 09 | 09 50 61 6e 69 63 28 4d |emp)....|.Panic(M|
|00000da0| 65 6d 45 72 72 6f 72 28 | 29 2c 22 5c 70 41 6c 6c |emError(|),"\pAll|
|00000db0| 6f 63 61 74 69 6e 67 20 | 6d 65 6d 2e 20 66 6f 72 |ocating |mem. for|
|00000dc0| 20 6e 65 77 20 70 72 65 | 66 2e 20 64 61 74 61 22 | new pre|f. data"|
|00000dd0| 29 3b 0d 09 09 09 41 64 | 64 52 65 73 6f 75 72 63 |);....Ad|dResourc|
|00000de0| 65 28 74 65 6d 70 2c 50 | 72 65 66 52 73 72 63 54 |e(temp,P|refRsrcT|
|00000df0| 79 70 65 2c 50 72 65 66 | 52 73 72 63 49 44 2c 22 |ype,Pref|RsrcID,"|
|00000e00| 5c 70 22 29 3b 0d 09 09 | 09 69 66 20 28 52 65 73 |\p");...|.if (Res|
|00000e10| 45 72 72 6f 72 28 29 20 | 21 3d 20 6e 6f 45 72 72 |Error() |!= noErr|
|00000e20| 29 0d 09 09 09 09 50 61 | 6e 69 63 28 52 65 73 45 |).....Pa|nic(ResE|
|00000e30| 72 72 6f 72 28 29 2c 22 | 5c 70 57 72 69 74 69 6e |rror(),"|\pWritin|
|00000e40| 67 20 6e 65 77 20 70 72 | 65 66 2e 20 64 61 74 61 |g new pr|ef. data|
|00000e50| 22 29 3b 0d 09 09 7d 0d | 09 09 65 6c 73 65 0d 09 |");...}.|..else..|
|00000e60| 09 09 50 61 6e 69 63 28 | 52 65 73 45 72 72 6f 72 |..Panic(|ResError|
|00000e70| 28 29 2c 22 5c 70 52 65 | 61 64 69 6e 67 20 70 72 |(),"\pRe|ading pr|
|00000e80| 65 66 2e 20 64 61 74 61 | 22 29 3b 0d 09 7d 0d 09 |ef. data|");..}..|
|00000e90| 72 65 74 75 72 6e 20 74 | 65 6d 70 3b 0d 7d 0d 0d |return t|emp;.}..|
|00000ea0| 62 6f 6f 6c 20 53 68 69 | 66 74 4b 65 79 44 6f 77 |bool Shi|ftKeyDow|
|00000eb0| 6e 28 76 6f 69 64 29 0d | 7b 0d 09 45 76 65 6e 74 |n(void).|{..Event|
|00000ec0| 52 65 63 6f 72 64 20 65 | 76 65 6e 74 3b 0d 09 42 |Record e|vent;..B|
|00000ed0| 6f 6f 6c 65 61 6e 20 67 | 6f 74 45 76 65 6e 74 3b |oolean g|otEvent;|
|00000ee0| 0d 09 0d 09 67 6f 74 45 | 76 65 6e 74 20 3d 20 45 |....gotE|vent = E|
|00000ef0| 76 65 6e 74 41 76 61 69 | 6c 28 65 76 65 72 79 45 |ventAvai|l(everyE|
|00000f00| 76 65 6e 74 2c 26 65 76 | 65 6e 74 29 3b 0d 09 72 |vent,&ev|ent);..r|
|00000f10| 65 74 75 72 6e 20 28 28 | 65 76 65 6e 74 2e 6d 6f |eturn ((|event.mo|
|00000f20| 64 69 66 69 65 72 73 20 | 26 20 73 68 69 66 74 4b |difiers |& shiftK|
|00000f30| 65 79 29 20 3f 20 31 20 | 3a 20 30 29 3b 0d 7d 0d |ey) ? 1 |: 0);.}.|
|00000f40| 0d 76 6f 69 64 20 54 75 | 72 6e 53 69 6c 65 6e 74 |.void Tu|rnSilent|
|00000f50| 4f 66 66 5f 69 66 53 68 | 69 66 74 44 6f 77 6e 28 |Off_ifSh|iftDown(|
|00000f60| 76 6f 69 64 29 0d 7b 0d | 09 2f 2a 20 57 65 27 72 |void).{.|./* We'r|
|00000f70| 65 20 73 75 72 65 20 77 | 65 20 68 61 76 65 20 61 |e sure w|e have a|
|00000f80| 20 50 72 65 66 20 72 65 | 73 6f 75 72 63 65 20 6e | Pref re|source n|
|00000f90| 6f 77 2e 2e 2e 49 20 68 | 6f 70 65 20 2a 2f 0d 09 |ow...I h|ope */..|
|00000fa0| 69 66 20 28 53 68 69 66 | 74 4b 65 79 44 6f 77 6e |if (Shif|tKeyDown|
|00000fb0| 28 29 29 0d 09 7b 0d 09 | 09 50 61 72 61 6d 54 65 |())..{..|.ParamTe|
|00000fc0| 78 74 28 22 5c 70 20 6e | 6f 74 22 2c 0d 09 09 09 |xt("\p n|ot",....|
|00000fd0| 22 5c 70 70 72 6f 6d 70 | 74 20 79 6f 75 20 66 6f |"\ppromp|t you fo|
|00000fe0| 72 20 63 6f 6e 66 69 72 | 6d 61 74 69 6f 6e 20 62 |r confir|mation b|
|00000ff0| 65 66 6f 72 65 20 72 65 | 73 65 74 74 69 6e 67 2c |efore re|setting,|
|00001000| 20 61 73 20 75 73 75 61 | 6c 2e 22 2c 0d 09 09 09 | as usua|l.",....|
|00001010| 22 5c 70 63 6c 69 63 6b | 20 74 68 65 20 27 51 75 |"\pclick| the 'Qu|
|00001020| 69 74 20 26 20 72 75 6e | 20 73 69 6c 65 6e 74 6c |it & run| silentl|
|00001030| 79 20 6e 65 78 74 20 74 | 69 6d 65 27 20 62 75 74 |y next t|ime' but|
|00001040| 74 6f 6e 20 6f 6e 20 74 | 68 65 20 73 74 61 72 74 |ton on t|he start|
|00001050| 75 70 20 64 69 61 6c 6f | 67 2e 22 2c 0d 09 09 09 |up dialo|g.",....|
|00001060| 22 5c 70 22 29 3b 0d 09 | 09 28 76 6f 69 64 29 41 |"\p");..|.(void)A|
|00001070| 6c 65 72 74 28 54 6f 67 | 67 6c 65 41 6c 72 74 2c |lert(Tog|gleAlrt,|
|00001080| 4e 55 4c 4c 29 3b 0d 09 | 09 28 2a 70 72 65 66 73 |NULL);..|.(*prefs|
|00001090| 29 2d 3e 73 69 6c 65 6e | 74 20 3d 20 5f 46 41 4c |)->silen|t = _FAL|
|000010a0| 53 45 5f 3b 0d 09 09 43 | 68 61 6e 67 65 64 52 65 |SE_;...C|hangedRe|
|000010b0| 73 6f 75 72 63 65 28 70 | 72 65 66 73 29 3b 0d 09 |source(p|refs);..|
|000010c0| 09 69 66 20 28 52 65 73 | 45 72 72 6f 72 28 29 20 |.if (Res|Error() |
|000010d0| 21 3d 20 6e 6f 45 72 72 | 29 0d 09 09 09 50 61 6e |!= noErr|)....Pan|
|000010e0| 69 63 28 52 65 73 45 72 | 72 6f 72 28 29 2c 22 5c |ic(ResEr|ror(),"\|
|000010f0| 70 57 72 69 74 69 6e 67 | 20 70 72 65 66 2e 20 64 |pWriting| pref. d|
|00001100| 61 74 61 22 29 3b 0d 09 | 09 45 78 69 74 54 6f 53 |ata");..|.ExitToS|
|00001110| 68 65 6c 6c 28 29 3b 0d | 09 7d 0d 7d 0d 0d 76 6f |hell();.|.}.}..vo|
|00001120| 69 64 20 54 75 72 6e 53 | 69 6c 65 6e 74 4f 6e 28 |id TurnS|ilentOn(|
|00001130| 76 6f 69 64 29 0d 7b 0d | 09 2f 2a 20 57 65 27 72 |void).{.|./* We'r|
|00001140| 65 20 73 75 72 65 20 77 | 65 20 68 61 76 65 20 61 |e sure w|e have a|
|00001150| 20 50 72 65 66 20 72 65 | 73 6f 75 72 63 65 20 6e | Pref re|source n|
|00001160| 6f 77 2e 2e 2e 49 20 68 | 6f 70 65 20 2a 2f 0d 09 |ow...I h|ope */..|
|00001170| 50 61 72 61 6d 54 65 78 | 74 28 22 5c 70 22 2c 0d |ParamTex|t("\p",.|
|00001180| 09 09 22 5c 70 4e 4f 54 | 20 70 72 6f 6d 70 74 20 |.."\pNOT| prompt |
|00001190| 79 6f 75 20 66 6f 72 20 | 63 6f 6e 66 69 72 6d 61 |you for |confirma|
|000011a0| 74 69 6f 6e 20 62 65 66 | 6f 72 65 20 72 65 73 65 |tion bef|ore rese|
|000011b0| 74 74 69 6e 67 20 74 68 | 65 20 64 61 74 61 62 61 |tting th|e databa|
|000011c0| 73 65 73 2c 20 73 6f 20 | 74 68 61 74 20 22 0d 09 |ses, so |that "..|
|000011d0| 09 09 22 69 74 20 77 69 | 6c 6c 20 72 75 6e 20 75 |.."it wi|ll run u|
|000011e0| 6e 61 74 74 65 6e 64 65 | 64 2e 22 2c 0d 09 09 22 |nattende|d.",..."|
|000011f0| 5c 70 68 6f 6c 64 20 74 | 68 65 20 53 68 69 66 74 |\phold t|he Shift|
|00001200| 20 6b 65 79 20 61 73 20 | 79 6f 75 20 73 74 61 72 | key as |you star|
|00001210| 74 20 75 70 20 52 65 73 | 65 74 20 44 54 44 42 73 |t up Res|et DTDBs|
|00001220| 2e 22 2c 0d 09 09 22 5c | 70 22 29 3b 0d 09 28 76 |.",..."\|p");..(v|
|00001230| 6f 69 64 29 41 6c 65 72 | 74 28 54 6f 67 67 6c 65 |oid)Aler|t(Toggle|
|00001240| 41 6c 72 74 2c 4e 55 4c | 4c 29 3b 0d 09 28 2a 70 |Alrt,NUL|L);..(*p|
|00001250| 72 65 66 73 29 2d 3e 73 | 69 6c 65 6e 74 20 3d 20 |refs)->s|ilent = |
|00001260| 5f 54 52 55 45 5f 3b 0d | 09 43 68 61 6e 67 65 64 |_TRUE_;.|.Changed|
|00001270| 52 65 73 6f 75 72 63 65 | 28 70 72 65 66 73 29 3b |Resource|(prefs);|
|00001280| 0d 09 69 66 20 28 52 65 | 73 45 72 72 6f 72 28 29 |..if (Re|sError()|
|00001290| 20 21 3d 20 6e 6f 45 72 | 72 29 0d 09 09 50 61 6e | != noEr|r)...Pan|
|000012a0| 69 63 28 52 65 73 45 72 | 72 6f 72 28 29 2c 22 5c |ic(ResEr|ror(),"\|
|000012b0| 70 57 72 69 74 69 6e 67 | 20 70 72 65 66 2e 20 64 |pWriting| pref. d|
|000012c0| 61 74 61 22 29 3b 0d 09 | 45 78 69 74 54 6f 53 68 |ata");..|ExitToSh|
|000012d0| 65 6c 6c 28 29 3b 0d 7d | 0d 0d 70 61 73 63 61 6c |ell();.}|..pascal|
|000012e0| 20 76 6f 69 64 20 6d 61 | 69 6e 28 76 6f 69 64 29 | void ma|in(void)|
|000012f0| 0d 7b 0d 09 51 48 64 72 | 50 74 72 09 09 76 63 62 |.{..QHdr|Ptr..vcb|
|00001300| 51 48 64 72 20 3d 20 47 | 65 74 56 43 42 51 48 64 |QHdr = G|etVCBQHd|
|00001310| 72 28 29 3b 0d 09 56 43 | 42 09 09 09 2a 61 56 43 |r();..VC|B...*aVC|
|00001320| 42 20 3d 20 28 56 43 42 | 20 2a 29 20 76 63 62 51 |B = (VCB| *) vcbQ|
|00001330| 48 64 72 2d 3e 71 48 65 | 61 64 3b 0d 09 73 68 6f |Hdr->qHe|ad;..sho|
|00001340| 72 74 09 09 69 74 73 56 | 52 65 66 4e 75 6d 2c 0d |rt..itsV|RefNum,.|
|00001350| 09 09 09 09 69 74 73 44 | 54 52 65 66 4e 75 6d 3b |....itsD|TRefNum;|
|00001360| 0d 09 0d 09 49 6e 69 74 | 4d 61 63 28 29 3b 0d 09 |....Init|Mac();..|
|00001370| 0d 09 70 72 65 66 73 20 | 3d 20 47 65 74 50 72 65 |..prefs |= GetPre|
|00001380| 66 73 28 29 3b 0d 09 54 | 75 72 6e 53 69 6c 65 6e |fs();..T|urnSilen|
|00001390| 74 4f 66 66 5f 69 66 53 | 68 69 66 74 44 6f 77 6e |tOff_ifS|hiftDown|
|000013a0| 28 29 3b 0d 09 0d 09 69 | 66 20 28 21 28 2a 70 72 |();....i|f (!(*pr|
|000013b0| 65 66 73 29 2d 3e 73 69 | 6c 65 6e 74 29 0d 09 09 |efs)->si|lent)...|
|000013c0| 44 6f 44 69 61 6c 6f 67 | 73 28 29 3b 0d 09 09 0d |DoDialog|s();....|
|000013d0| 09 4b 69 6c 6c 46 69 6e | 64 65 72 28 29 3b 0d 09 |.KillFin|der();..|
|000013e0| 77 68 69 6c 65 20 28 21 | 64 6f 6e 65 28 61 56 43 |while (!|done(aVC|
|000013f0| 42 29 29 0d 09 7b 0d 09 | 09 69 74 73 56 52 65 66 |B))..{..|.itsVRef|
|00001400| 4e 75 6d 20 3d 20 61 56 | 43 42 2d 3e 76 63 62 56 |Num = aV|CB->vcbV|
|00001410| 52 65 66 4e 75 6d 3b 0d | 09 09 69 74 73 44 54 52 |RefNum;.|..itsDTR|
|00001420| 65 66 4e 75 6d 20 3d 20 | 4f 70 65 6e 44 61 74 61 |efNum = |OpenData|
|00001430| 62 61 73 65 28 69 74 73 | 56 52 65 66 4e 75 6d 29 |base(its|VRefNum)|
|00001440| 3b 0d 09 09 50 72 65 70 | 61 72 65 44 61 74 61 62 |;...Prep|areDatab|
|00001450| 61 73 65 28 69 74 73 44 | 54 52 65 66 4e 75 6d 29 |ase(itsD|TRefNum)|
|00001460| 3b 0d 09 09 44 65 6c 65 | 74 65 44 61 74 61 62 61 |;...Dele|teDataba|
|00001470| 73 65 28 69 74 73 56 52 | 65 66 4e 75 6d 29 3b 0d |se(itsVR|efNum);.|
|00001480| 09 09 61 56 43 42 20 3d | 20 28 56 43 42 20 2a 29 |..aVCB =| (VCB *)|
|00001490| 20 61 56 43 42 2d 3e 71 | 4c 69 6e 6b 3b 0d 09 7d | aVCB->q|Link;..}|
|000014a0| 3b 0d 09 0d 09 69 66 20 | 28 21 28 2a 70 72 65 66 |;....if |(!(*pref|
|000014b0| 73 29 2d 3e 73 69 6c 65 | 6e 74 29 0d 09 09 28 76 |s)->sile|nt)...(v|
|000014c0| 6f 69 64 29 41 6c 65 72 | 74 28 53 75 63 63 65 73 |oid)Aler|t(Succes|
|000014d0| 73 41 6c 72 74 2c 4e 55 | 4c 4c 29 3b 0d 09 53 68 |sAlrt,NU|LL);..Sh|
|000014e0| 75 74 44 77 6e 53 74 61 | 72 74 28 29 3b 0d 7d 0d |utDwnSta|rt();.}.|
|000014f0| 0d 73 68 6f 72 74 20 4f | 70 65 6e 44 61 74 61 62 |.short O|penDatab|
|00001500| 61 73 65 28 73 68 6f 72 | 74 20 76 52 65 66 4e 75 |ase(shor|t vRefNu|
|00001510| 6d 29 0d 7b 0d 09 44 54 | 50 42 52 65 63 20 09 64 |m).{..DT|PBRec .d|
|00001520| 74 70 62 3b 0d 09 73 68 | 6f 72 74 09 09 64 74 52 |tpb;..sh|ort..dtR|
|00001530| 65 66 4e 75 6d 3b 0d 09 | 4f 53 45 72 72 09 09 65 |efNum;..|OSErr..e|
|00001540| 72 72 3b 0d 09 0d 09 64 | 74 70 62 2e 69 6f 43 6f |rr;....d|tpb.ioCo|
|00001550| 6d 70 6c 65 74 69 6f 6e | 20 3d 20 4e 55 4c 4c 3b |mpletion| = NULL;|
|00001560| 0d 09 64 74 70 62 2e 69 | 6f 4e 61 6d 65 50 74 72 |..dtpb.i|oNamePtr|
|00001570| 20 3d 20 4e 55 4c 4c 3b | 0d 09 64 74 70 62 2e 69 | = NULL;|..dtpb.i|
|00001580| 6f 56 52 65 66 4e 75 6d | 20 3d 20 76 52 65 66 4e |oVRefNum| = vRefN|
|00001590| 75 6d 3b 0d 09 65 72 72 | 20 3d 20 50 42 44 54 47 |um;..err| = PBDTG|
|000015a0| 65 74 50 61 74 68 28 26 | 64 74 70 62 29 3b 0d 09 |etPath(&|dtpb);..|
|000015b0| 69 66 20 28 65 72 72 29 | 20 50 61 6e 69 63 28 65 |if (err)| Panic(e|
|000015c0| 72 72 2c 22 5c 70 4f 70 | 65 6e 44 61 74 61 62 61 |rr,"\pOp|enDataba|
|000015d0| 73 65 22 29 3b 0d 09 72 | 65 74 75 72 6e 20 64 74 |se");..r|eturn dt|
|000015e0| 70 62 2e 69 6f 44 54 52 | 65 66 4e 75 6d 3b 0d 7d |pb.ioDTR|efNum;.}|
|000015f0| 0d 0d 76 6f 69 64 20 44 | 65 6c 65 74 65 44 61 74 |..void D|eleteDat|
|00001600| 61 62 61 73 65 28 73 68 | 6f 72 74 20 76 52 65 66 |abase(sh|ort vRef|
|00001610| 4e 75 6d 29 0d 7b 0d 09 | 44 54 50 42 52 65 63 09 |Num).{..|DTPBRec.|
|00001620| 09 64 74 70 62 3b 0d 09 | 4f 53 45 72 72 09 09 65 |.dtpb;..|OSErr..e|
|00001630| 72 72 3b 0d 09 0d 09 64 | 74 70 62 2e 69 6f 43 6f |rr;....d|tpb.ioCo|
|00001640| 6d 70 6c 65 74 69 6f 6e | 20 3d 20 4e 55 4c 4c 3b |mpletion| = NULL;|
|00001650| 0d 09 64 74 70 62 2e 69 | 6f 56 52 65 66 4e 75 6d |..dtpb.i|oVRefNum|
|00001660| 20 3d 20 76 52 65 66 4e | 75 6d 3b 0d 09 64 74 70 | = vRefN|um;..dtp|
|00001670| 62 2e 69 6f 49 6e 64 65 | 78 20 3d 20 30 3b 0d 20 |b.ioInde|x = 0;. |
|00001680| 09 65 72 72 20 3d 20 50 | 42 44 54 44 65 6c 65 74 |.err = P|BDTDelet|
|00001690| 65 28 26 64 74 70 62 2c | 66 61 6c 73 65 29 3b 0d |e(&dtpb,|false);.|
|000016a0| 09 69 66 20 28 65 72 72 | 29 20 50 61 6e 69 63 28 |.if (err|) Panic(|
|000016b0| 65 72 72 2c 22 5c 70 44 | 65 6c 65 74 65 44 61 74 |err,"\pD|eleteDat|
|000016c0| 61 62 61 73 65 22 29 3b | 0d 7d 0d 0d 76 6f 69 64 |abase");|.}..void|
|000016d0| 20 50 72 65 70 61 72 65 | 44 61 74 61 62 61 73 65 | Prepare|Database|
|000016e0| 28 73 68 6f 72 74 20 64 | 74 52 65 66 4e 75 6d 29 |(short d|tRefNum)|
|000016f0| 0d 7b 0d 09 44 54 50 42 | 52 65 63 09 09 64 74 70 |.{..DTPB|Rec..dtp|
|00001700| 62 3b 0d 09 4f 53 45 72 | 72 09 09 65 72 72 3b 0d |b;..OSEr|r..err;.|
|00001710| 09 0d 09 64 74 70 62 2e | 69 6f 43 6f 6d 70 6c 65 |...dtpb.|ioComple|
|00001720| 74 69 6f 6e 20 3d 20 4e | 55 4c 4c 3b 0d 09 64 74 |tion = N|ULL;..dt|
|00001730| 70 62 2e 69 6f 44 54 52 | 65 66 4e 75 6d 20 3d 20 |pb.ioDTR|efNum = |
|00001740| 64 74 52 65 66 4e 75 6d | 3b 0d 09 65 72 72 20 3d |dtRefNum|;..err =|
|00001750| 20 50 42 44 54 46 6c 75 | 73 68 28 26 64 74 70 62 | PBDTFlu|sh(&dtpb|
|00001760| 2c 66 61 6c 73 65 29 3b | 0d 09 69 66 20 28 65 72 |,false);|..if (er|
|00001770| 72 29 20 50 61 6e 69 63 | 28 65 72 72 2c 22 5c 70 |r) Panic|(err,"\p|
|00001780| 50 72 65 70 61 72 65 44 | 61 74 61 62 61 73 65 2d |PrepareD|atabase-|
|00001790| 2d 46 6c 75 73 68 22 29 | 3b 0d 09 0d 09 65 72 72 |-Flush")|;....err|
|000017a0| 20 3d 20 50 42 44 54 43 | 6c 6f 73 65 44 6f 77 6e | = PBDTC|loseDown|
|000017b0| 28 26 64 74 70 62 29 3b | 0d 09 69 66 20 28 65 72 |(&dtpb);|..if (er|
|000017c0| 72 29 20 50 61 6e 69 63 | 28 65 72 72 2c 22 5c 70 |r) Panic|(err,"\p|
|000017d0| 50 72 65 70 61 72 65 44 | 61 74 61 62 61 73 65 2d |PrepareD|atabase-|
|000017e0| 2d 43 6c 6f 73 65 44 6f | 77 6e 22 29 3b 0d 7d 0d |-CloseDo|wn");.}.|
|000017f0| 0d 76 6f 69 64 20 49 6e | 69 74 4d 61 63 28 76 6f |.void In|itMac(vo|
|00001800| 69 64 29 0d 7b 0d 09 73 | 68 6f 72 74 09 09 78 3b |id).{..s|hort..x;|
|00001810| 0d 09 0d 09 49 6e 69 74 | 47 72 61 66 28 26 71 64 |....Init|Graf(&qd|
|00001820| 2e 74 68 65 50 6f 72 74 | 29 3b 0d 09 49 6e 69 74 |.thePort|);..Init|
|00001830| 46 6f 6e 74 73 28 29 3b | 0d 09 46 6c 75 73 68 45 |Fonts();|..FlushE|
|00001840| 76 65 6e 74 73 28 65 76 | 65 72 79 45 76 65 6e 74 |vents(ev|eryEvent|
|00001850| 2c 30 29 3b 0d 09 49 6e | 69 74 57 69 6e 64 6f 77 |,0);..In|itWindow|
|00001860| 73 28 29 3b 0d 09 49 6e | 69 74 4d 65 6e 75 73 28 |s();..In|itMenus(|
|00001870| 29 3b 0d 09 54 45 49 6e | 69 74 28 29 3b 0d 09 49 |);..TEIn|it();..I|
|00001880| 6e 69 74 44 69 61 6c 6f | 67 73 28 4e 55 4c 4c 29 |nitDialo|gs(NULL)|
|00001890| 3b 0d 09 49 6e 69 74 43 | 75 72 73 6f 72 28 29 3b |;..InitC|ursor();|
|000018a0| 0d 09 4d 61 78 41 70 70 | 6c 5a 6f 6e 65 28 29 3b |..MaxApp|lZone();|
|000018b0| 0d 09 66 6f 72 28 78 3d | 31 3b 78 3c 31 31 3b 78 |..for(x=|1;x<11;x|
|000018c0| 2b 2b 29 0d 09 09 4d 6f | 72 65 4d 61 73 74 65 72 |++)...Mo|reMaster|
|000018d0| 73 28 29 3b 0d 7d 0d 0d | 76 6f 69 64 20 44 6f 44 |s();.}..|void DoD|
|000018e0| 69 61 6c 6f 67 73 28 76 | 6f 69 64 29 0d 7b 0d 09 |ialogs(v|oid).{..|
|000018f0| 69 66 20 28 41 6c 65 72 | 74 28 53 74 61 72 74 75 |if (Aler|t(Startu|
|00001900| 70 41 6c 72 74 2c 4e 55 | 4c 4c 29 20 21 3d 20 6f |pAlrt,NU|LL) != o|
|00001910| 6b 29 20 54 75 72 6e 53 | 69 6c 65 6e 74 4f 6e 28 |k) TurnS|ilentOn(|
|00001920| 29 3b 0d 09 69 66 20 28 | 41 6c 65 72 74 28 43 6f |);..if (|Alert(Co|
|00001930| 6e 66 69 72 6d 41 6c 72 | 74 2c 4e 55 4c 4c 29 20 |nfirmAlr|t,NULL) |
|00001940| 21 3d 20 6f 6b 29 20 45 | 78 69 74 54 6f 53 68 65 |!= ok) E|xitToShe|
|00001950| 6c 6c 28 29 3b 0d 7d 0d | 0d 76 6f 69 64 20 4b 69 |ll();.}.|.void Ki|
|00001960| 6c 6c 46 69 6e 64 65 72 | 28 76 6f 69 64 29 0d 7b |llFinder|(void).{|
|00001970| 0d 09 50 72 6f 63 65 73 | 73 53 65 72 69 61 6c 4e |..Proces|sSerialN|
|00001980| 75 6d 62 65 72 09 09 70 | 73 6e 2c 0d 09 09 09 09 |umber..p|sn,.....|
|00001990| 09 09 09 66 69 6e 64 65 | 72 3b 0d 09 50 72 6f 63 |...finde|r;..Proc|
|000019a0| 65 73 73 49 6e 66 6f 52 | 65 63 09 09 09 70 69 72 |essInfoR|ec...pir|
|000019b0| 3b 0d 09 4f 53 45 72 72 | 09 09 09 09 09 65 72 72 |;..OSErr|.....err|
|000019c0| 3b 0d 09 41 70 70 6c 65 | 45 76 65 6e 74 09 09 09 |;..Apple|Event...|
|000019d0| 09 74 68 65 45 76 65 6e | 74 3b 0d 09 41 45 44 65 |.theEven|t;..AEDe|
|000019e0| 73 63 09 09 09 09 09 74 | 68 65 41 64 64 72 65 73 |sc.....t|heAddres|
|000019f0| 73 3b 0d 09 42 6f 6f 6c | 65 61 6e 09 09 09 09 09 |s;..Bool|ean.....|
|00001a00| 67 6f 74 45 76 65 6e 74 | 3b 0d 09 45 76 65 6e 74 |gotEvent|;..Event|
|00001a10| 52 65 63 6f 72 64 09 09 | 09 09 65 76 65 6e 74 3b |Record..|..event;|
|00001a20| 0d 09 73 68 6f 72 74 09 | 09 09 09 09 78 3b 0d 09 |..short.|....x;..|
|00001a30| 0d 09 2f 2a 20 57 65 20 | 68 61 76 65 20 74 6f 20 |../* We |have to |
|00001a40| 64 6f 20 74 68 69 73 20 | 62 65 63 61 75 73 65 20 |do this |because |
|00001a50| 49 4d 20 56 49 20 73 61 | 79 73 20 6e 6f 74 20 74 |IM VI sa|ys not t|
|00001a60| 6f 20 63 61 6c 6c 20 50 | 42 44 54 52 65 73 65 74 |o call P|BDTReset|
|00001a70| 2f 50 42 44 54 44 65 6c | 65 74 65 0d 09 20 2a 20 |/PBDTDel|ete.. * |
|00001a80| 22 75 6e 6c 65 73 73 20 | 79 6f 75 20 61 72 65 20 |"unless |you are |
|00001a90| 6d 61 6e 69 70 75 6c 61 | 74 69 6e 67 20 74 68 65 |manipula|ting the|
|00001aa0| 20 64 65 73 6b 74 6f 70 | 20 64 61 74 61 62 61 73 | desktop| databas|
|00001ab0| 65 20 69 6e 20 74 68 65 | 20 61 62 73 65 6e 63 65 |e in the| absence|
|00001ac0| 0d 09 20 2a 20 6f 66 20 | 74 68 65 20 46 69 6e 64 |.. * of |the Find|
|00001ad0| 65 72 22 2e 2e 2e 20 61 | 6e 64 20 77 65 20 61 6c |er"... a|nd we al|
|00001ae0| 6c 20 6b 6e 6f 77 20 74 | 68 61 74 20 49 4d 20 69 |l know t|hat IM i|
|00001af0| 73 20 74 68 65 20 77 6f | 72 64 20 6f 66 20 47 6f |s the wo|rd of Go|
|00001b00| 64 2e 2e 2e 20 3a 29 0d | 09 20 2a 20 53 6f 20 68 |d... :).|. * So h|
|00001b10| 65 72 65 20 67 6f 65 73 | 2e 2e 2e 0d 09 20 2a 2f |ere goes|..... */|
|00001b20| 0d 09 20 20 20 0d 09 70 | 73 6e 2e 68 69 67 68 4c |.. ..p|sn.highL|
|00001b30| 6f 6e 67 4f 66 50 53 4e | 20 3d 20 30 3b 0d 09 70 |ongOfPSN| = 0;..p|
|00001b40| 73 6e 2e 6c 6f 77 4c 6f | 6e 67 4f 66 50 53 4e 20 |sn.lowLo|ngOfPSN |
|00001b50| 3d 20 6b 4e 6f 50 72 6f | 63 65 73 73 3b 0d 09 0d |= kNoPro|cess;...|
|00001b60| 09 70 69 72 2e 70 72 6f | 63 65 73 73 49 6e 66 6f |.pir.pro|cessInfo|
|00001b70| 4c 65 6e 67 74 68 20 3d | 20 73 69 7a 65 6f 66 28 |Length =| sizeof(|
|00001b80| 50 72 6f 63 65 73 73 49 | 6e 66 6f 52 65 63 29 3b |ProcessI|nfoRec);|
|00001b90| 0d 09 70 69 72 2e 70 72 | 6f 63 65 73 73 41 70 70 |..pir.pr|ocessApp|
|00001ba0| 53 70 65 63 20 3d 20 4e | 55 4c 4c 3b 0d 09 70 69 |Spec = N|ULL;..pi|
|00001bb0| 72 2e 70 72 6f 63 65 73 | 73 4e 61 6d 65 20 3d 20 |r.proces|sName = |
|00001bc0| 4e 55 4c 4c 3b 0d 09 0d | 09 77 68 69 6c 65 20 28 |NULL;...|.while (|
|00001bd0| 47 65 74 4e 65 78 74 50 | 72 6f 63 65 73 73 28 26 |GetNextP|rocess(&|
|00001be0| 70 73 6e 29 20 21 3d 20 | 70 72 6f 63 4e 6f 74 46 |psn) != |procNotF|
|00001bf0| 6f 75 6e 64 29 0d 09 7b | 0d 09 09 28 76 6f 69 64 |ound)..{|...(void|
|00001c00| 29 47 65 74 50 72 6f 63 | 65 73 73 49 6e 66 6f 72 |)GetProc|essInfor|
|00001c10| 6d 61 74 69 6f 6e 28 26 | 70 73 6e 2c 26 70 69 72 |mation(&|psn,&pir|
|00001c20| 29 3b 0d 09 09 69 66 20 | 28 70 69 72 2e 70 72 6f |);...if |(pir.pro|
|00001c30| 63 65 73 73 53 69 67 6e | 61 74 75 72 65 20 3d 3d |cessSign|ature ==|
|00001c40| 20 46 69 6e 64 65 72 53 | 69 67 6e 61 74 75 72 65 | FinderS|ignature|
|00001c50| 29 0d 09 09 7b 0d 09 09 | 09 66 69 6e 64 65 72 20 |)...{...|.finder |
|00001c60| 3d 20 70 73 6e 3b 0d 09 | 09 09 62 72 65 61 6b 3b |= psn;..|..break;|
|00001c70| 0d 09 09 7d 0d 09 7d 0d | 09 0d 09 2f 2a 2a 2a 20 |...}..}.|.../*** |
|00001c80| 6b 69 6c 6c 20 74 68 65 | 20 61 70 70 20 63 6f 64 |kill the| app cod|
|00001c90| 65 20 73 77 69 70 65 64 | 20 66 72 6f 6d 20 43 2e |e swiped| from C.|
|00001ca0| 4b 2e 20 48 61 75 6e 20 | 77 69 74 68 20 6d 69 6e |K. Haun |with min|
|00001cb0| 69 6d 61 6c 20 6d 6f 64 | 69 66 69 63 61 74 69 6f |imal mod|ificatio|
|00001cc0| 6e 73 20 2a 2a 2a 2f 0d | 20 20 20 20 28 76 6f 69 |ns ***/.| (voi|
|00001cd0| 64 29 41 45 43 72 65 61 | 74 65 44 65 73 63 28 74 |d)AECrea|teDesc(t|
|00001ce0| 79 70 65 50 72 6f 63 65 | 73 73 53 65 72 69 61 6c |ypeProce|ssSerial|
|00001cf0| 4e 75 6d 62 65 72 2c 20 | 28 50 74 72 29 26 66 69 |Number, |(Ptr)&fi|
|00001d00| 6e 64 65 72 2c 0d 20 20 | 20 20 20 20 73 69 7a 65 |nder,. | size|
|00001d10| 6f 66 28 66 69 6e 64 65 | 72 29 2c 20 26 74 68 65 |of(finde|r), &the|
|00001d20| 41 64 64 72 65 73 73 29 | 3b 0d 20 20 20 20 28 76 |Address)|;. (v|
|00001d30| 6f 69 64 29 41 45 43 72 | 65 61 74 65 41 70 70 6c |oid)AECr|eateAppl|
|00001d40| 65 45 76 65 6e 74 28 6b | 43 6f 72 65 45 76 65 6e |eEvent(k|CoreEven|
|00001d50| 74 43 6c 61 73 73 2c 20 | 6b 41 45 51 75 69 74 41 |tClass, |kAEQuitA|
|00001d60| 70 70 6c 69 63 61 74 69 | 6f 6e 2c 0d 20 20 20 20 |pplicati|on,. |
|00001d70| 20 20 26 74 68 65 41 64 | 64 72 65 73 73 2c 20 6b | &theAd|dress, k|
|00001d80| 41 75 74 6f 47 65 6e 65 | 72 61 74 65 52 65 74 75 |AutoGene|rateRetu|
|00001d90| 72 6e 49 44 2c 20 6b 41 | 6e 79 54 72 61 6e 73 61 |rnID, kA|nyTransa|
|00001da0| 63 74 69 6f 6e 49 44 2c | 20 26 74 68 65 45 76 65 |ctionID,| &theEve|
|00001db0| 6e 74 29 3b 0d 20 20 20 | 20 41 45 44 69 73 70 6f |nt);. | AEDispo|
|00001dc0| 73 65 44 65 73 63 28 26 | 74 68 65 41 64 64 72 65 |seDesc(&|theAddre|
|00001dd0| 73 73 29 3b 0d 20 20 20 | 20 41 45 53 65 6e 64 28 |ss);. | AESend(|
|00001de0| 26 74 68 65 45 76 65 6e | 74 2c 20 4e 55 4c 4c 2c |&theEven|t, NULL,|
|00001df0| 20 6b 41 45 4e 6f 52 65 | 70 6c 79 20 2b 20 6b 41 | kAENoRe|ply + kA|
|00001e00| 45 41 6c 77 61 79 73 49 | 6e 74 65 72 61 63 74 20 |EAlwaysI|nteract |
|00001e10| 2b 0d 20 20 20 20 20 20 | 6b 41 45 43 61 6e 53 77 |+. |kAECanSw|
|00001e20| 69 74 63 68 4c 61 79 65 | 72 2c 20 6b 41 45 4e 6f |itchLaye|r, kAENo|
|00001e30| 72 6d 61 6c 50 72 69 6f | 72 69 74 79 2c 20 6b 41 |rmalPrio|rity, kA|
|00001e40| 45 44 65 66 61 75 6c 74 | 54 69 6d 65 6f 75 74 2c |EDefault|Timeout,|
|00001e50| 20 4e 55 4c 4c 2c 20 4e | 55 4c 4c 29 3b 0d 20 20 | NULL, N|ULL);. |
|00001e60| 20 20 41 45 44 69 73 70 | 6f 73 65 44 65 73 63 28 | AEDisp|oseDesc(|
|00001e70| 26 74 68 65 45 76 65 6e | 74 29 3b 0d 20 20 20 20 |&theEven|t);. |
|00001e80| 2f 2a 2a 2a 20 65 6e 64 | 20 73 77 69 70 65 64 20 |/*** end| swiped |
|00001e90| 63 6f 64 65 20 2a 2a 2a | 2f 0d 20 20 20 20 0d 20 |code ***|/. . |
|00001ea0| 20 20 20 2f 2a 20 67 69 | 76 65 20 69 74 20 74 69 | /* gi|ve it ti|
|00001eb0| 6d 65 20 74 6f 20 77 6f | 72 6b 20 2a 2f 0d 20 20 |me to wo|rk */. |
|00001ec0| 20 20 66 6f 72 28 78 3d | 31 3b 20 78 3c 3d 35 3b | for(x=|1; x<=5;|
|00001ed0| 20 78 2b 2b 29 0d 20 20 | 20 20 09 67 6f 74 45 76 | x++). | .gotEv|
|00001ee0| 65 6e 74 20 3d 20 45 76 | 65 6e 74 41 76 61 69 6c |ent = Ev|entAvail|
|00001ef0| 28 65 76 65 72 79 45 76 | 65 6e 74 2c 20 26 65 76 |(everyEv|ent, &ev|
|00001f00| 65 6e 74 29 3b 0d 20 20 | 20 20 09 0d 7d 0d 0d 76 |ent);. | ..}..v|
|00001f10| 6f 69 64 20 50 61 6e 69 | 63 28 4f 53 45 72 72 20 |oid Pani|c(OSErr |
|00001f20| 65 72 72 2c 20 75 6e 73 | 69 67 6e 65 64 20 63 68 |err, uns|igned ch|
|00001f30| 61 72 20 2a 72 6f 75 74 | 69 6e 65 29 0d 7b 0d 09 |ar *rout|ine).{..|
|00001f40| 53 74 72 32 35 35 20 65 | 72 72 73 74 72 3b 0d 09 |Str255 e|rrstr;..|
|00001f50| 0d 09 69 66 20 28 70 72 | 65 66 73 29 0d 09 7b 0d |..if (pr|efs)..{.|
|00001f60| 09 09 69 66 20 28 21 28 | 2a 70 72 65 66 73 29 2d |..if (!(|*prefs)-|
|00001f70| 3e 73 69 6c 65 6e 74 29 | 0d 09 09 7b 0d 09 09 09 |>silent)|...{....|
|00001f80| 4e 75 6d 54 6f 53 74 72 | 69 6e 67 28 28 6c 6f 6e |NumToStr|ing((lon|
|00001f90| 67 29 20 65 72 72 2c 65 | 72 72 73 74 72 29 3b 0d |g) err,e|rrstr);.|
|00001fa0| 09 09 09 50 61 72 61 6d | 54 65 78 74 28 65 72 72 |...Param|Text(err|
|00001fb0| 73 74 72 2c 72 6f 75 74 | 69 6e 65 2c 22 5c 70 22 |str,rout|ine,"\p"|
|00001fc0| 2c 22 5c 70 22 29 3b 0d | 09 09 09 28 76 6f 69 64 |,"\p");.|...(void|
|00001fd0| 29 41 6c 65 72 74 28 45 | 72 72 6f 72 41 6c 72 74 |)Alert(E|rrorAlrt|
|00001fe0| 2c 4e 55 4c 4c 29 3b 0d | 09 09 7d 0d 09 7d 0d 09 |,NULL);.|..}..}..|
|00001ff0| 65 6c 73 65 0d 09 7b 0d | 09 09 53 79 73 42 65 65 |else..{.|..SysBee|
|00002000| 70 28 31 29 3b 0d 09 7d | 0d 09 53 68 75 74 44 77 |p(1);..}|..ShutDw|
|00002010| 6e 53 74 61 72 74 28 29 | 3b 0d 7d 0d 0d 00 00 00 |nStart()|;.}.....|
|00002020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002080| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00002090| 00 00 0a a0 00 41 03 00 | 00 00 00 00 00 00 00 00 |.....A..|........|
|000020a0| 00 00 01 53 0c 41 6c 70 | 68 61 20 35 2e 33 31 20 |...S.Alp|ha 5.31 |
|000020b0| 0c 72 65 73 65 74 64 74 | 64 62 73 2e 63 f4 02 00 |.resetdt|dbs.c...|
|000020c0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000020d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 ab a3 7b f4 00 00 | 00 00 00 00 01 7e 00 05 |....{...|.....~..|
|00002100| d0 00 a7 a1 30 90 a8 8f | 69 4e 00 00 00 00 00 00 |....0...|iN......|
|00002110| 00 00 00 00 00 00 00 00 | 00 00 00 00 07 09 00 00 |........|........|
|00002120| 00 00 00 00 00 00 00 00 | 00 00 00 00 4e 00 00 5d |........|....N..]|
|00002130| 00 00 00 00 00 00 00 00 | 00 00 00 00 0d 00 00 00 |........|........|
|00002140| 0a a0 07 62 69 66 66 6d | 73 67 02 00 00 00 54 45 |...biffm|sg....TE|
|00002150| 58 54 41 4c 46 41 01 00 | ff ff ff ff 00 00 00 00 |XTALFA..|........|
|00002160| 1b 63 00 00 00 00 04 8c | 00 00 10 00 00 00 00 00 |.c......|........|
|00002170| 01 7e 00 00 10 00 a8 69 | 15 b7 a8 69 15 b7 00 00 |.~.....i|...i....|
|00002180| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 2a 0d a4 |...H..Mo|naco.*..|
|00002190| 01 10 99 8a 01 2a 0c 72 | 01 16 f6 5c 01 15 7f 44 |.....*.r|...\...D|
|000021a0| 00 15 3a 9e 01 2a 00 04 | 00 04 00 28 00 03 01 dd |..:..*..|...(....|
|000021b0| 02 01 00 28 00 03 01 dd | 02 01 00 01 d3 ec 00 00 |...(....|........|
|000021c0| 07 bd 00 00 0d 67 00 00 | 09 a0 01 00 00 00 01 00 |.....g..|........|
|000021d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 01 0f 62 98 |...L...L|...2..b.|
|000021e0| 10 e6 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000021f0| 00 0a 03 ed ff ff 00 00 | 00 00 01 0f 61 d0 00 00 |........|....a...|
+--------+-------------------------+-------------------------+--------+--------+